package com.guodaxia.gzh.service.user;

import com.guodaxia.gzh.config.condition.TestTokenCondition;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Component;

/**
 * @author guojianquan
 * @date 2024/12/12 0:17
 */
@Component
@Conditional(value = {TestTokenCondition.class})
public class TestToken implements IWXTokenService {
    AppBaseInfo appBaseInfo;

    public TestToken(AppBaseInfo appBaseInfo) {
        this.appBaseInfo = appBaseInfo;
    }

    public TestToken() {
        appBaseInfo = AppInfo.devMock;
    }


    @Override
    public AppBaseInfo getAppInfo() {
        return this.appBaseInfo;
    }

}
